Skip to main content

ARDK for Android/com.nianticlabs.ardk/CameraIntrinsics/getImageDimensions

getImageDimensions

[androidJvm]
open fun getImageDimensions(): IntArray

Returns a int[2] containing the image dimensions. The order of values is {width, height}.

[androidJvm]
open fun getImageDimensions(dimensions: IntArray?, offset: Int)

Returns the camera's image dimensions. The order of values is {width, height}.

Parameters​

androidJvm

dimensionsstorage for at least 2 ints representing the image's width and height.
offsetthe offset in dimensions at which to begin writing the image dimension's values.